from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

driver = webdriver.Firefox()
driver.get("http://www.baidu.com")

ele = driver.find_element(By.PARTIAL_LINK_TEXT, "闻")
ele.click()
sleep(2)

driver.close()
